<%@page pageEncoding="UTF-8"%>
<form id="userForm" method="post" action="admin/userAction!saveUser.action">
	  <fieldset> 
        <legend style="padding:5px 3px 3px 3px">用户基本信息</legend> 
	    <table border="0" cellspacing="3px">
	        <tr>
	            <td style="padding-left:6px;width:18%">所属公司：</td>
	            <td>
	                <input type="hidden" id="ids" name="ids"/>
                    <input type="hidden" name="valid"/>
                    <input type="hidden" name="userInfoIds"/>
	            	<select name="departmentIds" id="dept_id"  required="true" style="width:160px;"></select>
	            </td>
	            <td style="padding-left:6px;width:18%">真实姓名：</td>
	            <td><input class="easyui-validatebox" type="text" name="names" style="width:154px;" required="true"/></td>
	        </tr>
	        <tr>
	            <td style="padding-left:6px;width:18%">登录名：</td>
	            <td><input class="easyui-validatebox" type="text" name="userName" style="width:154px;" required="true" invalidMessage='用户名已存在'  validType="unique['${pageContext.request.contextPath }/admin/userAction!checkUser.action','userName','ids']"/></td>
	             <td style="padding-left:6px;width:18%">性别：</td>
	            <td><select name="sex"    required="true" style="width:160px;">
	            	<option value=1>男</option>
	            	<option value=2>女</option>
	            </select></td>
	        </tr>
	         <tr>
	            <td style="padding-left:6px;width:18%"><div id="pwdLable">输入密码：</div><div id="newPwdLable" style="display:none">输入新密码：</div></td>
	            <td><input class="easyui-validatebox" type="password" style="width:155px;" id="passWord" name="passWord"  validType="safepass[8]"/></td>
	            <td style="padding-left:6px;width:18%"><div id="pwdLable2">确认密码：</div><div id="newPwdLable2" style="display:none">确认新密码：</div></td>
	            <td><input class="easyui-validatebox" type="password" style="width:155px;" name="passWord2"    validType="equalTo['#passWord']"/></td>
	        </tr>
		    <tr>
	            <td style="padding-left:6px;width:18%">手机号：</td>
	            <td><input class="easyui-validatebox" type="text" style="width:154px;" name="mobile" validType="mobile"/></td>
	            <td style="padding-left:6px;width:18%">电话：</td>
	            <td><input class="easyui-validatebox" type="text" style="width:154px;" name="telephone"/></td>
	        </tr> 
	        <tr>
	            <td style="padding-left:6px;width:18%">QQ号码：</td>
	            <td><input class="easyui-validatebox" style="width:154px;" type="text" name="qq" validType="QQ"/></td>
	            <td style="padding-left:6px;width:18%">邮编：</td>
	            <td><input class="easyui-validatebox" style="width:154px;" type="text" name="postboy" validType="ZIP"/></td>
	        </tr> 
	        <tr>
	            <td style="padding-left:6px;width:18%">邮箱：</td>
	            <td><input class="easyui-validatebox" type="text" style="width:154px;" validType="email" name="email"/></td>
	            <td style="padding-left:6px;width:18%"></td>
	            <td></td>
	        </tr>
	        <tr>
	            <td style="padding-left:6px">地址：</td>
	            <td colspan="3"><textarea cols="43" rows="2" type="text" name="address"></textarea></td>
	        </tr> 
		</table>
	   </fieldset>
       </form>